Evaluates which of the two numbers is higher.
#include <Math.au3>
_Max ( $nNum1, $nNum2 )
Parameters
$nNum1 | First number. |
$nNum2 | Second number. |
Return Value
Success: | Returns the higher of the two numbers. |
Failure: | Returns 0. |
@Error: | 0 = No error. |
1 = $nNum1 isn't a number. | |
2 = $nNum2 isn't a number. |
Remarks
This function works with floats as well as integers.
Related
_Min
Example
#include <Math.au3>
$x = _Max(25, 10) ; returns 25